/**
 * Generate time : 2011-06-08 7:21:43
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cm.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCMTeammaterialplanDetail
 * 
 */
public class ZMCMTeammaterialplanDetail extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdPlanId = " "; /* 材料计划主键 */
	private String fdMaterialId = " "; /* 物资ID */
	private String fdMaterialCode = " "; /* 物资编码 */
	private String fdMaterialInnerCode = " "; /* 物资内码 */
	private String fdMaterialName = " "; /* 物资名称 */
	private String fdTypeCode = " "; /* 物资分类编码 */
	private String fdTypeName = " "; /* 物资分类名称 */
	private String fdMaterialType = " "; /* 物资类型 */
	private String fdFinanceClassify = " "; /* 资金分类 */
	private String fdQuality = " "; /* 材质 */
	private String fdSpecModel = " "; /* 规格型号 */
	private String fdNumber = " "; /* 图号 */
	private String fdMetric = " "; /* 计量单位 */
	private Double fdApplicationNum = new Double(0); /* 申请数量 */
	private Double fdAuditNum = new Double(0); /* 审批数量 */
	private Double fdPurchaseNum = new Double(0); /* 审核数量 */
	private Double fdSum = new Double(0); /* 金额 */
	private String fdParameter = " "; /* 技术指标 */
	private String fdProjectname = " "; /* 生产工程名称 */
	private String fdProjectId = " "; /* 工程主键 */
	private String fdRequireDate = " "; /* 使用日期 */
	// 添加字段
	private Double fdPrice = new Double(0); /* 单价 */
	private String fdExportStatus = " "; /* 领用状态 */
	// 新加字段
	private Double fdStockNum = new Double(0);// 库存数量
	private Double fdSafeBaseNum = new Double(0);// 安全库存
	private Double fdNeedNum = new Double(0);// 需求数量
	private Long fdSerialNum = new Long(0);// 顺序号
	private String fdSupplyName = " "; /* 供应商名称 */
	
	private String fdRemarkReport = " "; /* 上报备注 */
	private String fdRemarkAudit = " "; /* 审批备注 */
	private String fdRemarkPurchase = " "; /* 审核备注 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlanId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("材料计划主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("物资ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("物资编码");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialInnerCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("物资内码");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialName");
		eiColumn.setFieldLength(80);
		eiColumn.setDescName("物资名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTypeCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("物资分类编码");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTypeName");
		eiColumn.setFieldLength(80);
		eiColumn.setDescName("物资分类名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialType");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("物资类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFinanceClassify");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("资金分类");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdQuality");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("材质");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSpecModel");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("规格型号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNumber");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("图号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMetric");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("计量单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdApplicationNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("申请数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAuditNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("审批数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPurchaseNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("审核数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("金额");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdParameter");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("技术指标");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProjectname");
		eiColumn.setFieldLength(80);
		eiColumn.setDescName("生产工程名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProjectId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("工程主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRequireDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("使用日期");
		eiMetadata.addMeta(eiColumn);

		// 添加字段
		eiColumn = new EiColumn("fdPrice");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("单价");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdExportStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("领用状态");
		eiMetadata.addMeta(eiColumn);

		// 新加数量
		eiColumn = new EiColumn("fdStockNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("库存数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSafeBaseNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("安全库存");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNeedNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("需求数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSerialNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(0);
		eiColumn.setFieldLength(38);
		eiColumn.setDescName("顺序号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSupplyName");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("供应商名称");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdRemarkReport");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("上报备注");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdRemarkAudit");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("审核备注");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdRemarkPurchase");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("审批备注");
		eiMetadata.addMeta(eiColumn);
	}

	/**
	 * the constructor
	 */
	public ZMCMTeammaterialplanDetail() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdPlanId - 材料计划主键
	 * 
	 * @return the fdPlanId
	 */
	public String getFdPlanId() {
		return this.fdPlanId;
	}

	/**
	 * set the fdPlanId - 材料计划主键
	 */
	public void setFdPlanId(String fdPlanId) {
		this.fdPlanId = fdPlanId;
	}

	/**
	 * get the fdMaterialId - 物资ID
	 * 
	 * @return the fdMaterialId
	 */
	public String getFdMaterialId() {
		return this.fdMaterialId;
	}

	/**
	 * set the fdMaterialId - 物资ID
	 */
	public void setFdMaterialId(String fdMaterialId) {
		this.fdMaterialId = fdMaterialId;
	}

	/**
	 * get the fdMaterialCode - 物资编码
	 * 
	 * @return the fdMaterialCode
	 */
	public String getFdMaterialCode() {
		return this.fdMaterialCode;
	}

	/**
	 * set the fdMaterialCode - 物资编码
	 */
	public void setFdMaterialCode(String fdMaterialCode) {
		this.fdMaterialCode = fdMaterialCode;
	}

	/**
	 * get the fdMaterialInnerCode - 物资内码
	 * 
	 * @return the fdMaterialInnerCode
	 */
	public String getFdMaterialInnerCode() {
		return this.fdMaterialInnerCode;
	}

	/**
	 * set the fdMaterialInnerCode - 物资内码
	 */
	public void setFdMaterialInnerCode(String fdMaterialInnerCode) {
		this.fdMaterialInnerCode = fdMaterialInnerCode;
	}

	/**
	 * get the fdMaterialName - 物资名称
	 * 
	 * @return the fdMaterialName
	 */
	public String getFdMaterialName() {
		return this.fdMaterialName;
	}

	/**
	 * set the fdMaterialName - 物资名称
	 */
	public void setFdMaterialName(String fdMaterialName) {
		this.fdMaterialName = fdMaterialName;
	}

	/**
	 * get the fdTypeCode - 物资分类编码
	 * 
	 * @return the fdTypeCode
	 */
	public String getFdTypeCode() {
		return this.fdTypeCode;
	}

	/**
	 * set the fdTypeCode - 物资分类编码
	 */
	public void setFdTypeCode(String fdTypeCode) {
		this.fdTypeCode = fdTypeCode;
	}

	/**
	 * set the fdTypeName - 物资分类名称
	 */
	public void setFdTypeName(String fdTypeName) {
		this.fdTypeName = fdTypeName;
	}

	/**
	 * get the fdTypeName - 物资分类名称
	 * 
	 * @return the fdTypeName
	 */
	public String getFdTypeName() {
		return this.fdTypeName;
	}

	/**
	 * get the fdMaterialType - 物资类型
	 * 
	 * @return the fdMaterialType
	 */
	public String getFdMaterialType() {
		return this.fdMaterialType;
	}

	/**
	 * set the fdMaterialType - 物资类型
	 */
	public void setFdMaterialType(String fdMaterialType) {
		this.fdMaterialType = fdMaterialType;
	}

	/**
	 * get the fdFinanceClassify - 资金分类
	 * 
	 * @return the fdFinanceClassify
	 */
	public String getFdFinanceClassify() {
		return this.fdFinanceClassify;
	}

	/**
	 * set the fdFinanceClassify - 资金分类
	 */
	public void setFdFinanceClassify(String fdFinanceClassify) {
		this.fdFinanceClassify = fdFinanceClassify;
	}

	/**
	 * get the fdQuality - 材质
	 * 
	 * @return the fdQuality
	 */
	public String getFdQuality() {
		return this.fdQuality;
	}

	/**
	 * set the fdQuality - 材质
	 */
	public void setFdQuality(String fdQuality) {
		this.fdQuality = fdQuality;
	}

	/**
	 * get the fdSpecModel - 规格型号
	 * 
	 * @return the fdSpecModel
	 */
	public String getFdSpecModel() {
		return this.fdSpecModel;
	}

	/**
	 * set the fdSpecModel - 规格型号
	 */
	public void setFdSpecModel(String fdSpecModel) {
		this.fdSpecModel = fdSpecModel;
	}

	/**
	 * get the fdNumber - 图号
	 * 
	 * @return the fdNumber
	 */
	public String getFdNumber() {
		return this.fdNumber;
	}

	/**
	 * set the fdNumber - 图号
	 */
	public void setFdNumber(String fdNumber) {
		this.fdNumber = fdNumber;
	}

	/**
	 * get the fdMetric - 计量单位
	 * 
	 * @return the fdMetric
	 */
	public String getFdMetric() {
		return this.fdMetric;
	}

	/**
	 * set the fdMetric - 计量单位
	 */
	public void setFdMetric(String fdMetric) {
		this.fdMetric = fdMetric;
	}

	/**
	 * get the fdApplicationNum - 申请数量
	 * 
	 * @return the fdApplicationNum
	 */
	public Double getFdApplicationNum() {
		return this.fdApplicationNum;
	}

	/**
	 * set the fdApplicationNum - 申请数量
	 */
	public void setFdApplicationNum(Double fdApplicationNum) {
		this.fdApplicationNum = fdApplicationNum;
	}

	/**
	 * get the fdAuditNum - 审批数量
	 * 
	 * @return the fdAuditNum
	 */
	public Double getFdAuditNum() {
		return this.fdAuditNum;
	}

	/**
	 * set the fdAuditNum - 审批数量
	 */
	public void setFdAuditNum(Double fdAuditNum) {
		this.fdAuditNum = fdAuditNum;
	}

	/**
	 * get the fdPurchaseNum - 审核数量
	 * 
	 * @return the fdPurchaseNum
	 */
	public Double getFdPurchaseNum() {
		return this.fdPurchaseNum;
	}

	/**
	 * set the fdPurchaseNum - 审核数量
	 */
	public void setFdPurchaseNum(Double fdPurchaseNum) {
		this.fdPurchaseNum = fdPurchaseNum;
	}

	/**
	 * get the fdSum - 金额
	 * 
	 * @return the fdSum
	 */
	public Double getFdSum() {
		return this.fdSum;
	}

	/**
	 * set the fdSum - 金额
	 */
	public void setFdSum(Double fdSum) {
		this.fdSum = fdSum;
	}

	/**
	 * get the fdParameter - 技术指标
	 * 
	 * @return the fdParameter
	 */
	public String getFdParameter() {
		return this.fdParameter;
	}

	/**
	 * set the fdParameter - 技术指标
	 */
	public void setFdParameter(String fdParameter) {
		this.fdParameter = fdParameter;
	}

	/**
	 * get the fdProjectname - 生产工程名称
	 * 
	 * @return the fdProjectname
	 */
	public String getFdProjectname() {
		return this.fdProjectname;
	}

	/**
	 * set the fdProjectname - 生产工程名称
	 */
	public void setFdProjectname(String fdProjectname) {
		this.fdProjectname = fdProjectname;
	}

	/**
	 * get the fdProjectId - 工程主键
	 * 
	 * @return the fdProjectId
	 */
	public String getFdProjectId() {
		return this.fdProjectId;
	}

	/**
	 * set the fdProjectId - 工程主键
	 */
	public void setFdProjectId(String fdProjectId) {
		this.fdProjectId = fdProjectId;
	}

	/**
	 * get the fdRequireDate - 使用日期
	 * 
	 * @return the fdRequireDate
	 */
	public String getFdRequireDate() {
		return this.fdRequireDate;
	}

	/**
	 * set the fdRequireDate - 使用日期
	 */
	public void setFdRequireDate(String fdRequireDate) {
		this.fdRequireDate = fdRequireDate;
	}

	// 添加字段

	/**
	 * get the fdPrice - 单价
	 * 
	 * @return the fdPrice
	 */
	public Double getFdPrice() {
		return this.fdPrice;
	}

	/**
	 * set the fdApplicationNum - 单价
	 */
	public void setFdPrice(Double fdPrice) {
		this.fdPrice = fdPrice;
	}

	/**
	 * get the fdExportStatus - 领用状态
	 * 
	 * @return the fdExportStatus
	 */
	public String getFdExportStatus() {
		return this.fdExportStatus;
	}

	/**
	 * set the fdExportStatus - 领用状态
	 */
	public void setFdExportStatus(String fdExportStatus) {
		this.fdExportStatus = fdExportStatus;
	}

	/**
	 * @return the fdStockNum
	 */
	public Double getFdStockNum() {
		return fdStockNum;
	}

	/**
	 * @param fdStockNum
	 *            the fdStockNum to set
	 */
	public void setFdStockNum(Double fdStockNum) {
		this.fdStockNum = fdStockNum;
	}

	/**
	 * @return the fdSafeBaseNum
	 */
	public Double getFdSafeBaseNum() {
		return fdSafeBaseNum;
	}

	/**
	 * @param fdSafeBaseNum
	 *            the fdSafeBaseNum to set
	 */
	public void setFdSafeBaseNum(Double fdSafeBaseNum) {
		this.fdSafeBaseNum = fdSafeBaseNum;
	}

	/**
	 * @return the fdNeedNum
	 */
	public Double getFdNeedNum() {
		return fdNeedNum;
	}

	/**
	 * @param fdNeedNum
	 *            the fdNeedNum to set
	 */
	public void setFdNeedNum(Double fdNeedNum) {
		this.fdNeedNum = fdNeedNum;
	}

	/**
	 * get the fdSerialNum - 顺序号
	 * 
	 * @return the fdSerialNum
	 */
	public Long getFdSerialNum() {
		return this.fdSerialNum;
	}

	/**
	 * set the fdSerialNum - 顺序号
	 */
	public void setFdSerialNum(Long fdSerialNum) {
		this.fdSerialNum = fdSerialNum;
	}

	/**
	 * get the fdSupplyName - 供应商名称
	 * 
	 * @return the fdSupplyName
	 */
	public String getFdSupplyName() {
		return this.fdSupplyName;
	}

	/**
	 * set the fdSupplyName - 供应商名称
	 */
	public void setFdSupplyName(String fdSupplyName) {
		this.fdSupplyName = fdSupplyName;
	}
	
	/**
	 * get the fdRemarkReport - 上报备注
	 * 
	 * @return the fdRemarkReport
	 */
	public String getFdRemarkReport() {
		return this.fdRemarkReport;
	}

	/**
	 * set the fdRemarkReport - 上报备注
	 */
	public void setFdRemarkReport(String fdRemarkReport) {
		this.fdRemarkReport = fdRemarkReport;
	}
	
	/**
	 * get the fdRemarkAudit - 审批备注
	 * 
	 * @return the fdRemarkAudit
	 */
	public String getFdRemarkAudit() {
		return this.fdRemarkAudit;
	}

	/**
	 * set the fdRemarkReport - 审批备注
	 */
	public void setFdRemarkAudit(String fdRemarkAudit) {
		this.fdRemarkAudit = fdRemarkAudit;
	}
	
	/**
	 * get the fdRemarkAudit - 审核备注
	 * 
	 * @return the fdRemarkAudit
	 */
	public String getFdRemarkPurchase() {
		return this.fdRemarkPurchase;
	}

	/**
	 * set the fdRemarkPurchase - 审核备注
	 */
	public void setFdRemarkPurchase(String fdRemarkPurchase) {
		this.fdRemarkPurchase = fdRemarkPurchase;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdPlanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanId")), fdPlanId));
		setFdMaterialId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialId")), fdMaterialId));
		setFdMaterialCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialCode")), fdMaterialCode));
		setFdMaterialInnerCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialInnerCode")), fdMaterialInnerCode));
		setFdMaterialName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialName")), fdMaterialName));
		setFdTypeCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTypeCode")), fdTypeCode));
		setFdTypeName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTypeName")), fdTypeName));
		setFdMaterialType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialType")), fdMaterialType));
		setFdFinanceClassify(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFinanceClassify")), fdFinanceClassify));
		setFdQuality(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdQuality")), fdQuality));
		setFdSpecModel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSpecModel")), fdSpecModel));
		setFdNumber(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNumber")), fdNumber));
		setFdMetric(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMetric")), fdMetric));
		setFdApplicationNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdApplicationNum")), fdApplicationNum));
		setFdAuditNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdAuditNum")), fdAuditNum));
		setFdPurchaseNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdPurchaseNum")), fdPurchaseNum));
		setFdSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdSum")), fdSum));
		setFdParameter(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdParameter")), fdParameter));
		setFdProjectname(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProjectname")), fdProjectname));
		setFdProjectId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProjectId")), fdProjectId));
		setFdRequireDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRequireDate")), fdRequireDate));
		// 添加字段
		setFdPrice(NumberUtils.toDouble(StringUtils.toString(map.get("fdPrice")), fdPrice));
		setFdExportStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdExportStatus")), fdExportStatus));
		// x新加字段
		setFdStockNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdStockNum")), fdStockNum));
		setFdSafeBaseNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdSafeBaseNum")), fdSafeBaseNum));
		setFdNeedNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdNeedNum")), fdNeedNum));

		setFdSerialNum(NumberUtils.toLong(StringUtils.toString(map.get("fdSerialNum")), fdSerialNum));
		setFdSupplyName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSupplyName")), fdSupplyName));
		setFdRemarkReport(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarkReport")), fdRemarkReport));
		setFdRemarkAudit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarkAudit")), fdRemarkAudit));
		setFdRemarkPurchase(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarkPurchase")), fdRemarkPurchase));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {
		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdPlanId", StringUtils.toString(fdPlanId, eiMetadata.getMeta("fdPlanId")));
		map.put("fdMaterialId", StringUtils.toString(fdMaterialId, eiMetadata.getMeta("fdMaterialId")));
		map.put("fdMaterialCode", StringUtils.toString(fdMaterialCode, eiMetadata.getMeta("fdMaterialCode")));
		map.put("fdMaterialInnerCode", StringUtils.toString(fdMaterialInnerCode, eiMetadata.getMeta("fdMaterialInnerCode")));
		map.put("fdMaterialName", StringUtils.toString(fdMaterialName, eiMetadata.getMeta("fdMaterialName")));
		map.put("fdTypeCode", StringUtils.toString(fdTypeCode, eiMetadata.getMeta("fdTypeCode")));
		map.put("fdTypeName", StringUtils.toString(fdTypeName, eiMetadata.getMeta("fdTypeName")));
		map.put("fdMaterialType", StringUtils.toString(fdMaterialType, eiMetadata.getMeta("fdMaterialType")));
		map.put("fdFinanceClassify", StringUtils.toString(fdFinanceClassify, eiMetadata.getMeta("fdFinanceClassify")));
		map.put("fdQuality", StringUtils.toString(fdQuality, eiMetadata.getMeta("fdQuality")));
		map.put("fdSpecModel", StringUtils.toString(fdSpecModel, eiMetadata.getMeta("fdSpecModel")));
		map.put("fdNumber", StringUtils.toString(fdNumber, eiMetadata.getMeta("fdNumber")));
		map.put("fdMetric", StringUtils.toString(fdMetric, eiMetadata.getMeta("fdMetric")));
		map.put("fdApplicationNum", StringUtils.toString(fdApplicationNum, eiMetadata.getMeta("fdApplicationNum")));
		map.put("fdAuditNum", StringUtils.toString(fdAuditNum, eiMetadata.getMeta("fdAuditNum")));
		map.put("fdPurchaseNum", StringUtils.toString(fdPurchaseNum, eiMetadata.getMeta("fdPurchaseNum")));
		map.put("fdSum", StringUtils.toString(fdSum, eiMetadata.getMeta("fdSum")));
		map.put("fdParameter", StringUtils.toString(fdParameter, eiMetadata.getMeta("fdParameter")));
		map.put("fdProjectname", StringUtils.toString(fdProjectname, eiMetadata.getMeta("fdProjectname")));
		map.put("fdProjectId", StringUtils.toString(fdProjectId, eiMetadata.getMeta("fdProjectId")));
		map.put("fdRequireDate", StringUtils.toString(fdRequireDate, eiMetadata.getMeta("fdRequireDate")));
		// 添加字段
		map.put("fdPrice", StringUtils.toString(fdPrice, eiMetadata.getMeta("fdPrice")));
		map.put("fdExportStatus", StringUtils.toString(fdExportStatus, eiMetadata.getMeta("fdExportStatus")));

		// 新加字段
		map.put("fdStockNum", StringUtils.toString(fdStockNum, eiMetadata.getMeta("fdStockNum")));
		map.put("fdSafeBaseNum", StringUtils.toString(fdSafeBaseNum, eiMetadata.getMeta("fdSafeBaseNum")));
		map.put("fdNeedNum", StringUtils.toString(fdNeedNum, eiMetadata.getMeta("fdNeedNum")));
		map.put("fdSerialNum", StringUtils.toString(fdSerialNum, eiMetadata.getMeta("fdSerialNum")));
		map.put("fdSupplyName", StringUtils.toString(fdSupplyName, eiMetadata.getMeta("fdSupplyName")));
		map.put("fdRemarkReport", StringUtils.toString(fdRemarkReport, eiMetadata.getMeta("fdRemarkReport")));
		map.put("fdRemarkAudit", StringUtils.toString(fdRemarkAudit, eiMetadata.getMeta("fdRemarkAudit")));
		map.put("fdRemarkPurchase", StringUtils.toString(fdRemarkPurchase, eiMetadata.getMeta("fdRemarkPurchase")));

		return map;
	}
}